import request from '@/utils/request'
const baseURL = process.env.VUE_APP_USER_AUTH_URL
export function getDeptList(data) {
    return request({
        url: baseURL + '/dept/list',
        method: 'post',
        data,
    })
}
export function depDelete(id) {
    return request({
        url: baseURL + '/dept/delete?deptIds=' + id,
        method: 'delete',
    })
}
export function depCreate(data) {
    return request({
        url: baseURL + '/dept/create',
        method: 'post',
        data,
    })
}
export function depEdit(data) {
    return request({
        url: baseURL + '/dept/update',
        method: 'put',
        data,
    })
}